package com.asm.shiroweb.common.bean;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

public class UserBean  implements Serializable {

    private static final long serialVersionUID = 1L;

    private String userId;
    private String userName;
    private String userMobile;
    private String userPass;

    private String code;// 图片验证码

    private List<String> userRoles; // 角色
    private List<String> userPerms; // 资源


    public UserBean() {
    }


    public UserBean(String userId, String userName, String userMobile, String userPass, List<String> userRoles, List<String> userPerms) {
        this.userId = userId;
        this.userName = userName;
        this.userMobile = userMobile;
        this.userPass = userPass;
        this.userRoles = userRoles;
        this.userPerms = userPerms;
    }


    /*--------------------------------------------------------------------
     /                                                                   /
     /      jar包：<artifactId>shiro-redis</artifactId>  管理 shiro缓存 时 /
     /      用户 主体类 里必须有这个方法                                     /
     /      区别每个独立用户需要的方法                                       /
     /                                                                   /
     =====================================================================
     */
    public String getId() {
        return getUserId();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getUserMobile() {
        return userMobile;
    }

    public void setUserMobile(String userMobile) {
        this.userMobile = userMobile;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    public List<String> getUserRoles() {
        return userRoles;
    }

    public void setUserRoles(List<String> userRoles) {
        this.userRoles = userRoles;
    }

    public List<String> getUserPerms() {
        return userPerms;
    }

    public void setUserPerms(List<String> userPerms) {
        this.userPerms = userPerms;
    }


}
